ITK Programmer's Guide |
|||||||||||||
Table of contents |
Intro | General
| TCP Low Level |
TCP High Level |
UDP | DNS
| PPP
|
ITK_Init |
|||||||||||||||||||||
Syntax: |
result := ITK_Init(licence1;licence2)
|
||||||||||||||||||||
Description: |
Initialises ITK by giving ITK it's license number.
|
||||||||||||||||||||
Warning: |
If both license numbers are empty or invalid, ITK will run in demo mode and beep three times. Just call this routine once in your application prior to any other call to ITK, otherwise the "demo dialog" will show up (the best place to do this is the "Startup" procedure or the "On Startup" method of 4Dv6). If you are using ITK in 4D Server's stored procedures, you will have to call ITK_Init at the beginning of those procedures, otherwise the "demo dialog" will show up on 4D Server.
|
||||||||||||||||||||
Note: |
The secondary license number can be used in multiplatform applications. In that case, you can pass both Mac and Windows license numbers in one ITK_Init call.
|
||||||||||||||||||||
Params: |
|
||||||||||||||||||||
Example: |
$err := ITK_Init("ITK...";"ITK...") If ($err <0) ALERT("Your TCP/IP layers couldn't be initialised !") End If |
ITK_TCPInfos |
|||||||||||||||||||||||||||||||
Syntax: |
result := ITK_TCPInfos(localIP; version1; version2; ITKversion)
|
||||||||||||||||||||||||||||||
Description: |
Returns global information about the TCP/IP layers.
|
||||||||||||||||||||||||||||||
Params: |
|
||||||||||||||||||||||||||||||
Example: |
$err := ITK_TCPInfos(locAddr;TCPvers;OTvers) if (TCPvers=5) ` we're under Windows foldSep := "\" else foldSep := ":" end if |
ITK_TCPGetStrm |
||||||||||||||||
Syntax: |
result := ITK_TCPGetStrm(index)
|
|||||||||||||||
Description: |
This routine allows to retrieve the list of all current TCP streams allocated by ITK.
|
|||||||||||||||
Params: |
|
|||||||||||||||
Example: |
$nbStrm := ITK_TCPGetStrm(0) ` get the number of allocated streams For ($i;1;$nbStrm) $status := ITK_TCPStatus(ITK_TCPGetStrm($i)) End For |
ITK_TCPGlobInfo |
||||||||||||||||
Syntax: |
result := ITK_TCPGlobInfo(infoSelector)
|
|||||||||||||||
Description: |
Returns global information about the TCP layers.
|
|||||||||||||||
Params: |
|
|||||||||||||||
Example: |
maxTCPstrm := ITK_TCPGlobInfo(5) ` max. number of streams |